/*
 * ========================================================
 * Copyright(c) 2014 杭州偶尔科技-版权所有
 * ========================================================
 * 本软件由杭州偶尔科技所有, 未经书面许可, 任何单位和个人不得以
 * 任何形式复制代码的部分或全部, 并以任何形式传播。
 * 公司网址
 * 
 * 			http://www.kkkd.com/
 * 
 * ========================================================
 */
package com.simon.mengkou.ui.dialog;

import android.content.Context;

import com.ouertech.android.agm.lib.ui.base.BaseDialog;
import com.simon.mengkou.R;
import com.simon.mengkou.ui.activity.NDOrderActivity;

/**
 * @author : Zhenshui.Xia
 * @since : 2016/1/27.
 * desc    :订单邮寄确认对话框
 */
public class OrderConfirmDialog extends BaseDialog{
    private int mNum;
    private NDOrderActivity mActivity;

    public OrderConfirmDialog(NDOrderActivity context, int num) {
        super(context);
        mActivity = context;
        mNum = num;
    }

    @Override
    protected void initLayout() {

    }

    @Override
    protected void initViews() {
        if(mNum <=2) {
            setMessage(R.string.order_dialog_msg_02);
        } else {
            setMessage(R.string.order_dialog_msg_01);
        }

        setDouble(R.string.order_dialog_cancel, R.string.order_dialog_confirm);

        setOnDoubleListener(new OnLeftListener() {

            @Override
            public void onLeft() {
                cancel();
            }
        }, new OnRightListener() {

            @Override
            public void onRight() {
                cancel();
            }
        });
    }

}
